package examples;

import search.*;
/**
 * Write a description of class TowerSolveVisitor here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class TowerSolveVisitor extends DepthFirstSearchVisitor<TowerState, ChooseBlock>
{
    private int goal;
    private TowerState start;
    
    public TowerSolveVisitor(Tower initial, int goalHeight)
    {
        goal = goalHeight;
        start = new TowerState(initial);
    }
    
    public boolean isGoal(TowerState t)
    {
        return t.getData().getHeight() == goal;
    }
    
    public TowerState getStart()
    {
        return start;
    }
    
    
    
    
}
